package com.yun.service;

import com.yun.dao.MedicalMapper;
import com.yun.pojo.Medical;
import com.yun.pojo.Pet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicalService implements MedicalMapper {

    @Autowired
    MedicalMapper medicalMapper;
    @Override
    public List<Medical> getMedicals() {
        return medicalMapper.getMedicals();
    }

    @Override
    public int updateMedical(Pet pet) {
        return medicalMapper.updateMedical(pet);
    }


}
